import request from '@/utils/request'

export function listContract(query) {
  return request({
    url: '/system/contract/list',
    method: 'get',
    params: query
  })
}
export function delContract(compFeeIds) {
  return request({
    url: '/system/contract/' + compFeeIds,
    method: 'delete'
  })
}
export function contractAdd(data) {
  return request({
    url: '/system/contract',
    method: 'post',
    data: data
  })
}
export function updateContract(data) {
  return request({
    url: '/system/contract',
    method: 'put',
    data: data
  })
}
export function contractInfo(query) {
  return request({
    url: '/system/contract/' + query,
    method: 'get',
    params: query
  })
}

// 获取登陆人劳动合同详细信息
export function queryByLoginId(query) {
  return request({
    url: '/system/contract/queryByLoginId',
    method: 'get',
    params: query
  })
}

